<template>
  <div class="login">
    <header>
      <h3>注册</h3>
     <router-link to="/login"><span>登录</span></router-link>
    </header>
    <main>
      <img src="@/assets/rigster.png" alt="" />
 <!-- @submit="onSubmit" -->

      <!-- <van-form @submit="onSubmit">
        <van-cell-group inset>
    
          <van-field
            v-model="username"
            name="手机号"
            label="手机号"
            placeholder="手机号"
            :rules="[{ required: true, message: '请填写手机号 ' }]"
          />

          <van-field 
           v-model="password"
            type="password"
            name="密码"
            label="密码"
            placeholder="密码"
            :rules="[{ required: true, message: '请填写密码' }]"
          />
            <van-field
         
            type="password"
            name="确认密码"
            label="确认密码"
            placeholder="请再次输入密码"
            :rules="[{ required: true, message: '请填写密码' }]"
          />
        </van-cell-group> -->
        账号<input type="text" name="username" id="" class="user" placeholder="请输入手机号">
        <br/>密码<input type="text" name="password" id="" class="user" placeholder="请输入密码">
        <br/><input type="text" name="again" id="" class="again" placeholder="请再次输入密码">

        <div class="deng">
          <router-link to="/login">
          <van-button round block type="primary" native-type="submit" class="but">
            注册
          </van-button>
          </router-link>

          <!-- <van-radio class="xieyi" name="1"
            >&emsp;<span
              >注册/登录即代表同意《用户协议》<br />《隐私政策》</span
            >
          </van-radio> -->
        </div>
      <!-- </van-form> -->
    </main>
  </div>
</template>

<script>
import { ref } from "vue";
// import Qitadenglu from "../components/qitadenglu.vue";
export default {
  components: {
    // Qitadenglu,
  },
  setup() {
    const username = ref("");
    const password = ref("");
    const onSubmit = (values) => {
      console.log("submit", values);
    };

    return {
      username,
      password,
      onSubmit,
    };
  },
};
</script>

<style scoped>
.login{
  background-color: #fff;
  height: 6.5rem;
}
header {
  height: 0.5rem;
  border-bottom: 1px solid #999; 
  display: flex;
  width: 100%;
  /* background-color: antiquewhite; */
}
header span {
 line-height: 0.5rem;
   width: 0.3rem;
  height: 100%;
 

}
header h3 {
 line-height: 0.5rem;
 margin-left: 45%;
 font-size: 0.18rem;
 width: 1.5rem;

}
main {
  /* background-color: aquamarine; */
  min-height: 3rem;
  width: 90%;
  margin: 0.4rem auto;
}
main b {
  font-size: 0.3rem;
  font-weight: 800;
}
main a {
  font-size: 0.14rem;
  color: #999;
  margin-top: 0.15rem;
  display: flex;
  margin-left: 0.8rem;
}
.van-form {
  margin-top: 0.2rem;
}
.xieyi span {
  font-size: 0.12rem;
  color: #999;
}
main img {

  width: 1.7rem;
  height: 0.33rem;
  display: flex;
  margin: 0.8rem auto;
}
.deng {
  margin-top:50px;
    background-color: #c03131;
border-radius: 0.05rem;
}
.but {
  background-color: #c03131;
  border: 0;
  margin-left: -0.3rem;

}
.user,.again {
  width: 80%;
  height: 0.5rem;
 border-bottom: 1px solid #999; 
 font-size: 0.13rem;
 text-indent: 2em;
}
.again{
width: 80%;
 text-indent: 2em;
 margin-left: 0.3rem;
}
</style>